package gameplaying;

import java.util.Scanner;

public class MoveGame {

	//这个竟然655MS
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNext()) {
			int n = scanner.nextInt();
			int m = scanner.nextInt();
			if (n == 0 && m == 0) {
				break;
			}
			if(n % 2 == 0 || m % 2 == 0){
				System.out.println("Wonderful!");
			}else{
				System.out.println("What a pity!");
			}
		}
		scanner.close();
	}
}
